﻿using NodeEditor;

namespace ETHotfix
{
    [NodeEvent(typeof(SetStringNode))]
    public class SetStringNodeHandle : NodeHandle<SetStringNode>
    {
        protected override void OnHandle(RuntimeTree runtimeTree, RuntimeNode runtimeNode, SetStringNode data, Unit unit)
        {
            runtimeTree.runtimeValue.SetValue(data.key, data.value);
        }
    }
}